package com.swsc.solarverse.common.mybatis;

import com.baomidou.mybatisplus.core.injector.AbstractMethod;
import com.baomidou.mybatisplus.core.injector.DefaultSqlInjector;

import java.util.List;

/**
 * @Author chencl
 * @Date 2022/1/18 14:40
 * @Version 1.0
 * @Description MyLogicSqlInjector
 */
public class MyLogicSqlInjector extends DefaultSqlInjector {

    @Override
    public List<AbstractMethod> getMethodList(Class<?> mapperClass) {
        List<AbstractMethod> methodList = super.getMethodList(mapperClass);
        methodList.add(new InsertListMethod());
        methodList.add(new SelectForUpdateMethod());
        return methodList;
    }
}
